package com.jcxy.pojo;

import org.springframework.util.Base64Utils;

import java.sql.Blob;

/**
 * user实体类
 */
public class User {

    private String user_id;//用户id
    private String real_name;//用户名
    private String user_name;//用户名
    private String password;//密码
    private byte[] img;//头像
    private String img_base65;//base64加密后的头像字符串
    private Integer role_id;//角色id
    private Role role;//角色
    private String dictionary_value;//皮肤颜色
    private String dept_id;//部门id
    private String dept_name;//部门名称
    private String manager_id;//领导id
    private String manager_name;//领导名称
    private String telephone;//电话
    private String email;//邮箱
    private String address;//地址
    private String education;//学历
    private String user_school;//毕业学校
    private String idcard;//毕业学校
    private String bankcard;//银行卡
    private String sex;//性别
    private String theme_skin;//皮肤
    private String position_name;//职位

    public String getPosition_name() {
        return position_name;
    }

    public void setPosition_name(String position_name) {
        this.position_name = position_name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getUser_school() {
        return user_school;
    }

    public void setUser_school(String user_school) {
        this.user_school = user_school;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getBankcard() {
        return bankcard;
    }

    public void setBankcard(String bankcard) {
        this.bankcard = bankcard;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTheme_skin() {
        return theme_skin;
    }

    public void setTheme_skin(String theme_skin) {
        this.theme_skin = theme_skin;
    }

    public String getDept_id() {
        return dept_id;
    }

    public void setDept_id(String dept_id) {
        this.dept_id = dept_id;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public String getManager_id() {
        return manager_id;
    }

    public void setManager_id(String manager_id) {
        this.manager_id = manager_id;
    }

    public String getManager_name() {
        return manager_name;
    }

    public void setManager_name(String manager_name) {
        this.manager_name = manager_name;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getDictionary_value() {
        return dictionary_value;
    }

    public void setDictionary_value(String dictionary_value) {
        this.dictionary_value = dictionary_value;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public byte[] getImg() {
        return img;
    }

    public void setImg(byte[] img) {
        this.img = img;
    }

    public String getImg_base65() {

        return Base64Utils.encodeToString(img);
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
